package com.bum.rss.site;

import java.util.List;

import com.bum.rss.exp.om.RssEntry;

public abstract class Site {
	public static final String	URL_SEPARATOR		= "/";
	public static final String	PAGE_SEPARATOR		= ":";

	public static final String	MENU_CAT			= "menu";
	public static final String	MENU_CAT_TITLE		= "<Các chuyên mục>";

	public static final String	PREV_PAGE_TITLE		= "<...Trước>";
	public static final String	NEXT_PAGE_TITLE		= "<Xem thêm...>";

	private String				code;
	private String				title;
	private String				homeCat;
	private String				entryCachePrefix	= "";
	private long				catCacheDuration	= 1200000L;			// 2 hours
	private boolean				entryDbCache		= false;
	private boolean				hide				= false;

	public List<RssEntry> listSiteCats(String user) {
		return null;
	}

	public List<RssEntry> listCatEntrys(String cat, String user) {
		return null;
	}

	public RssEntry loadEntry(String path, String user) {
		return null;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String name) {
		this.title = name;
	}

	public String getRssLink(String httpLink) {
		return null;
	}

	public String getImgBase() {
		return null;
	}

	public String getEntryCachePrefix() {
		return entryCachePrefix;
	}

	public void setEntryCachePrefix(String entryCachePrefix) {
		this.entryCachePrefix = entryCachePrefix;
	}

	public long getCatCacheDuration() {
		return catCacheDuration;
	}

	public void setCatCacheDuration(long catCacheDuration) {
		this.catCacheDuration = catCacheDuration;
	}

	public boolean isEntryDbCache() {
		return entryDbCache;
	}

	public void setEntryDbCache(boolean entryDbCache) {
		this.entryDbCache = entryDbCache;
	}

	public String getHomeCat() {
		return homeCat;
	}

	public void setHomeCat(String homeCat) {
		this.homeCat = homeCat;
	}

	public boolean isHide() {
		return hide;
	}

	public void setHide(boolean hide) {
		this.hide = hide;
	}
}
